<?php
	$request = new HttpRequest("http://www.amazon.cn/", HttpRequest::METH_GET);
	try {
	    $request->send();
	    if ($request->getResponseCode() == 200) {
	        echo json_encode( $request->getResponseHeader() );
	    }
	} catch (HttpException $ex) {
	    echo $ex;
	}
	
	
?>